package com.hxd.mall.constant

import com.hxd.mall.module.account.UserInfo

/**
 *  账户相关常量
 */
object HxdConstantsAccount {

    var Channel_Number: String = "app"
    // 登录成功立刻赋值(退出或切换账号清空)
    var userInfo: UserInfo? = null
    var token: String? = null

    val localSearchKey = "localSearchKey"
    var localSearch: MutableList<String> = mutableListOf()


    var isLogin = token?.isNotEmpty() ?: false

    /**
     * 默认注册类型：手机号注册
     */
    const val mobile_register = 1
    /**
     * 微信登录服务器临时标识
     */
    const val wx_login_flag = "wx_login_flag"
    /**
     * 微信登录服务器临时标识
     */
    const val wx_login_asstoken = "wx_login_asstoken"
}